<?php
/**
 *
 * The runner for config setup for the PHPUnit3 tests
 *
 * @author Travis Swicegood <development [at] domain51 [dot] com>
 *
 * @ignore
 */
// set PHPUnit3 path
if (!empty($config['phpUnit_path'])) {
    set_include_path($config['phpUnit_path'] . PATH_SEPARATOR . get_include_path());
}

// set all of the known code_paths
if (count($config['code_path']) > 0) {
    set_include_path(implode(PATH_SEPARATOR, $config['code_path']) . PATH_SEPARATOR . get_include_path());
}

// set support path constant
foreach ($config['constants'] as $const_name => $const_value) {
    define($const_name, $const_value);
}

// add path for test support directory and give priority.
if (defined('SUPPORT_CODE_PATH')) {
	set_include_path(SUPPORT_CODE_PATH . PATH_SEPARATOR . get_include_path());
}

unset($config);

?>